# include <iostream>
#include <map>
using namespace std;
class myCompare{
public:
    bool operator()(int v1,int v2){
        return v1>v2;
    }
};
void test01(){
    map<int,int,myCompare>m;
    m.insert(make_pair(1,10));
    m.insert(make_pair(6,110));
    m.insert(make_pair(3,102));
    m.insert(make_pair(4,103));
    m.insert(make_pair(5,104));
    for(map<int,int,myCompare>::iterator it=m.begin();it!=m.end();it++){
        cout<<"key"<<it->first<<"value"<<it->second<<endl;
    }
}
int main() {
test01();
    system("pause");
    return 0;
}
